import { BlockNoteSchema, defaultBlockSpecs } from "@blocknote/core";
import { CodeBlock } from "./customBlock/CodeBlock";
import { Alert } from "./customBlock/Alert";
import { MermaidBlock } from "./customBlock/MermaidBlock";
import { DrawIO } from "./customBlock/DrawIO";

export const blockSchema = BlockNoteSchema.create({
  blockSpecs: {
    ...defaultBlockSpecs,
    draw: DrawIO,
    codeBlock: CodeBlock,
    alert: Alert,
    mermaid: MermaidBlock,
  },
});
